/**
 *
 */
package com.ramos.kuaixiao.utils;

import android.content.Context;
import android.os.Looper;
import android.widget.Toast;

import com.ramos.kuaixiao.App;

public class ToastUtils {

    public static void showShort(Context context, String info) {
        Toast.makeText(context, info, Toast.LENGTH_SHORT).show();
    }

    public static void show(String info) {
        Toast.makeText(App.mContext, info, Toast.LENGTH_SHORT).show();
    }

    public static void showLong(String info) {
        Looper.prepare();
        Toast.makeText(App.mContext, info, Toast.LENGTH_LONG).show();
        Looper.loop();
    }

    public static void showHandle(String info) {
        Looper.prepare();
        Toast.makeText(App.mContext, info, Toast.LENGTH_SHORT).show();
        Looper.loop();
    }

    public static void showWarning() {
        Toast.makeText(App.mContext, "此功能暂未开放，敬请期待", Toast.LENGTH_SHORT).show();
    }
}
